package com.example.schedule

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

//        arrayList
//        arrayList.add()
//        if (ContextCompat.checkSelfPermission(
//                this,
//                Manifest.permission.SET_ALARM
//            ) != PackageManager.PERMISSION_GRANTED
//        )
//            ActivityCompat.requestPermissions(
//                this,
//                arrayOf(Manifest.permission.SET_ALARM),
//                1
//            )
//        val intent = Intent(AlarmClock.ACTION_SET_ALARM)
//        intent.putExtra(AlarmClock.EXTRA_MESSAGE, "测试")
//        intent.putExtra(AlarmClock.EXTRA_HOUR, 16)
//        intent.putExtra(AlarmClock.EXTRA_MINUTES, 49)
//        intent.putExtra(AlarmClock.EXTRA_VIBRATE, true)
//        intent.putExtra(AlarmClock.EXTRA_SKIP_UI, true)
//        startActivity(intent)
    }

//    fun <E> MutableList<E>.reduce(int: Int) {
//
//    }
}